﻿// See https://aka.ms/new-console-template for more information

using Encoding.Models;
///用户输入明文和密钥
Console.Write("Please input your plaintext:");
string plain=Console.ReadLine();
Console.Write("Please input your key:");
string key=Console.ReadLine();

///加密
MyEncoder myencoder = new MyEncoder();
myencoder.Key = key;
myencoder.Plaintext = plain;
myencoder.Encode();
///输出密文
Console.WriteLine($"Your cypher is: {myencoder.Cypher}");
